home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / src / !runtime / exec.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-18  |  807 b   |  27 lines  |  [TEXT/R*ch]

  1. /* exec.h : format of executable bytecode files */
  2.  
  3. /*  offset 0 --->  initial junk
  4.                    code block
  5.                    data block
  6.                    symbol table
  7.                    debug infos
  8.                    trailer
  9.  end of file --->
  10. */
  11.  
  12. /* Structure of the trailer: five 32-bit, unsigned integers, big endian */
  13.  
  14. #define TRAILER_SIZE 20
  15.  
  16. struct exec_trailer {
  17.   unsigned long code_size;      /* Size of the code block (in bytes) */
  18.   unsigned long data_size;      /* Size of the global data table (bytes) */
  19.   unsigned long symbol_size;    /* Size of the symbol table (bytes) */
  20.   unsigned long debug_size;     /* Size of the debug infos (bytes) */
  21.   unsigned long magic;          /* A magic number */
  22. };
  23.  
  24. /* Magic number for this release */
  25.  
  26. #define EXEC_MAGIC 0x4d4c3038   /* "ML08" */
  27.